import { useNode, UserComponent } from '@craftjs/core';
import {RexProForm} from '@jeoshi-pro/pro-rex.data-entry.rex-pro-form'


export const Form:UserComponent<any> = (props) => {
    const {connectors:{drag,connect}} = useNode()

    return <div ref={dom => connect(drag(dom as HTMLElement))}>
        <RexProForm {...props} />
    </div>
};

Form.craft = {
    displayName: '表单',
    name: 'RexProForm',
}